Testing CodeFusion Script
Thorough testing is essential before deploying new or modified scripts to production.
The built-in testing console in CodeFusion enables you to validate logic, API integrations, and transformations before you publish changes. This reduces risk and helps ensure a smooth experience for end users.
To test a CodeFusion script:
-
Select the script you want to test from the CodeFusion script list.
-
Click Test code.
The Test console area displays the output and console log.
-
Confirm that the data, structure, and transformations match your expectations.
-
If the script runs successfully, click Save and then Publish to make it available for use.
-
If errors appear, use the logs to debug and iterate on your script until tests pass.
-
Click
to copy the output .
Tip: Use sample input values that closely mimic your production environment to maximize confidence in your testing.